#ifndef _LISH_H_
#define _LISH_H_

#define OK 0
#define ERROR -1
#define NOTFIND -2
typedef int ElementType;

typedef struct _Node
{
	ElementType number;
	struct _Node *next;
}Node;

typedef struct _List
{
	Node *head;
	int len;
}List;

int initList(List *list);
int addNodeIndex(List *list, int index, ElementType number);
void clearList(List *list);
void deleteNodeValue(List *list, ElementType number);
void deleteNodeIndex(List *list, int index);
void updateNodeValue(List *list, ElementType number);
void updateNodeIndex(List *list, int index);
int findNodeValue(List *list, ElementType number);
Node* findNodeIndex(List *list, int index);
void toStringList(List *list);


#endif